const Mock = require('mockjs');
const data = Mock.mock({
    'list|3': [{
        title: '@ctitle',
        name: '@cname',
        text: '@cword(50,400)',
        id: '@id'
    }]
})

console.log(data);

module.exports = {
    devServer: {
        before(app) {
            app.get('/list', (req, res) => {
                res.send(data.list)
            })
        }
    }
}